//保存图片
function saveImg(imgurl) {
  my.saveImage({
    url: imgurl,
    showActionSheet: true,
    success: () => {
        my.showToast({
          type: "success",
          content: "保存图片成功",
          duration: 2000,
          success: () => {
          },
        });
    },
    fail: (res) => {
      my.showToast({
        type: "fail",
        content: "保存图片失败",
        duration: 2000,
        success: () => {
        },
      });
    },
  });
}
export default saveImg;